.class public final Llt/noframe/ratemeplease/dialogs/RateMeDialogFragment;
.super Llt/noframe/ratemeplease/abs/AbsDialogFragment;
.source "RateMeDialogFragment.kt"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Llt/noframe/ratemeplease/dialogs/RateMeDialogFragment$REACTION;
    }
.end annotation

.annotation system Ldalvik/annotation/SourceDebugExtension;
    value = "SMAP\nRateMeDialogFragment.kt\nKotlin\n*S Kotlin\n*F\n+ 1 RateMeDialogFragment.kt\nlt/noframe/ratemeplease/dialogs/RateMeDialogFragment\n*L\n1#1,110:1\n*E\n"
.end annotation


# instance fields
.field private _$_findViewCache:Ljava/util/HashMap;

.field private mRating:F


# direct methods
.method public constructor <init>()V
    .locals 1

    .line 26
    invoke-direct {p0}, Llt/noframe/ratemeplease/abs/AbsDialogFragment;-><init>()V

    const/high16 v0, -0x40800000    # -1.0f

    .line 27
    iput v0, p0, Llt/noframe/ratemeplease/dialogs/RateMeDialogFragment;->mRating:F

    const/4 v0, 0x0

    .line 36
    invoke-virtual {p0, v0}, Llt/noframe/ratemeplease/abs/AbsDialogFragment;->setDismissible(Z)V

    return-void
.end method

.method public static final synthetic access$getDataBundle(Llt/noframe/ratemeplease/dialogs/RateMeDialogFragment;Ljava/lang/String;)Landroid/os/Bundle;
    .locals 0

    .line 26
    invoke-direct {p0, p1}, Llt/noframe/ratemeplease/dialogs/RateMeDialogFragment;->getDataBundle(Ljava/lang/String;)Landroid/os/Bundle;

    move-result-object p0

    return-object p0
.end method

.method private final getDataBundle(Ljava/lang/String;)Landroid/os/Bundle;
    .locals 3

    .line 98
    new-instance v0, Landroid/os/Bundle;

    invoke-direct {v0}, Landroid/os/Bundle;-><init>()V

    .line 99
    sget-object v1, Llt/noframe/ratemeplease/RateMePls;->BUNDLE_RATING_STARS:Ljava/lang/String;

    iget v2, p0, Llt/noframe/ratemeplease/dialogs/RateMeDialogFragment;->mRating:F

    invoke-virtual {v0, v1, v2}, Landroid/os/Bundle;->putFloat(Ljava/lang/String;F)V

    .line 100
    sget-object v1, Llt/noframe/ratemeplease/RateMePls;->BUNDLE_RATING_FEEDBACK:Ljava/lang/String;

    invoke-virtual {v0, v1, p1}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    return-object v0
.end method

.method static synthetic getDataBundle$default(Llt/noframe/ratemeplease/dialogs/RateMeDialogFragment;Ljava/lang/String;ILjava/lang/Object;)Landroid/os/Bundle;
    .locals 0

    and-int/lit8 p2, p2, 0x1

    if-eqz p2, :cond_0

    const-string p1, ""

    .line 97
    :cond_0
    invoke-direct {p0, p1}, Llt/noframe/ratemeplease/dialogs/RateMeDialogFragment;->getDataBundle(Ljava/lang/String;)Landroid/os/Bundle;

    move-result-object p0

    return-object p0
.end method


# virtual methods
.method public _$_clearFindViewByIdCache()V
    .locals 1

    iget-object v0, p0, Llt/noframe/ratemeplease/dialogs/RateMeDialogFragment;->_$_findViewCache:Ljava/util/HashMap;

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Ljava/util/HashMap;->clear()V

    :cond_0
    return-void
.end method

.method public onCancel(Landroid/content/DialogInterface;)V
    .locals 4

    .line 105
    invoke-super {p0, p1}, Landroidx/fragment/app/DialogFragment;->onCancel(Landroid/content/DialogInterface;)V

    .line 106
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object p1

    if-eqz p1, :cond_0

    .line 107
    sget-object v0, Llt/noframe/ratemeplease/RateMePlsKotlin;->S:Llt/noframe/ratemeplease/RateMePlsKotlin$S;

    invoke-virtual {v0}, Llt/noframe/ratemeplease/RateMePlsKotlin$S;->getParentInterface()Llt/noframe/ratemeplease/java_interfaces/OnReactionInterface;

    move-result-object v0

    if-eqz v0, :cond_0

    const-string v1, "act"

    invoke-static {p1, v1}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    sget-object v1, Llt/noframe/ratemeplease/dialogs/RateMeDialogFragment$REACTION;->DISMISS:Llt/noframe/ratemeplease/dialogs/RateMeDialogFragment$REACTION;

    const/4 v2, 0x1

    const/4 v3, 0x0

    invoke-static {p0, v3, v2, v3}, Llt/noframe/ratemeplease/dialogs/RateMeDialogFragment;->getDataBundle$default(Llt/noframe/ratemeplease/dialogs/RateMeDialogFragment;Ljava/lang/String;ILjava/lang/Object;)Landroid/os/Bundle;

    move-result-object v2

    invoke-interface {v0, p1, v1, v2}, Llt/noframe/ratemeplease/java_interfaces/OnReactionInterface;->onRatingReaction(Landroid/app/Activity;Llt/noframe/ratemeplease/dialogs/RateMeDialogFragment$REACTION;Landroid/os/Bundle;)V

    :cond_0
    return-void
.end method

.method public synthetic onDestroyView()V
    .locals 0

    invoke-super {p0}, Llt/noframe/ratemeplease/abs/AbsDialogFragment;->onDestroyView()V

    invoke-virtual {p0}, Llt/noframe/ratemeplease/dialogs/RateMeDialogFragment;->_$_clearFindViewByIdCache()V

    return-void
.end method

.method public onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V
    .locals 2

    const-string v0, "view"

    invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    .line 40
    invoke-super {p0, p1, p2}, Llt/noframe/ratemeplease/abs/AbsDialogFragment;->onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V

    .line 42
    new-instance p1, Llt/noframe/ratemeplease/views/RateMeView;

    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object p2

    if-eqz p2, :cond_0

    const-string v0, "activity!!"

    invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-direct {p1, p2}, Llt/noframe/ratemeplease/views/RateMeView;-><init>(Landroid/app/Activity;)V

    .line 43
    new-instance p2, Landroid/view/ViewGroup$LayoutParams;

    const/4 v0, -0x1

    const/4 v1, -0x2

    invoke-direct {p2, v0, v1}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V

    invoke-virtual {p1, p2}, Landroid/widget/LinearLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 44
    new-instance p2, Llt/noframe/ratemeplease/dialogs/RateMeDialogFragment$onViewCreated$1;

    invoke-direct {p2, p0}, Llt/noframe/ratemeplease/dialogs/RateMeDialogFragment$onViewCreated$1;-><init>(Llt/noframe/ratemeplease/dialogs/RateMeDialogFragment;)V

    invoke-virtual {p1, p2}, Llt/noframe/ratemeplease/views/RateMeView;->setListener(Landroid/widget/RatingBar$OnRatingBarChangeListener;)V

    .line 51
    invoke-virtual {p0, p1}, Llt/noframe/ratemeplease/abs/AbsDialogFragment;->setCurrentContent(Landroid/view/View;)V

    return-void

    .line 42
    :cond_0
    invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V

    const/4 p1, 0x0

    throw p1
.end method

.method public final parseRatingResult(Landroid/widget/RatingBar;FZ)V
    .locals 2

    .line 57
    sget-object p1, Llt/noframe/ratemeplease/Conf;->Companion:Llt/noframe/ratemeplease/Conf$Companion;

    invoke-virtual {p1}, Llt/noframe/ratemeplease/Conf$Companion;->getIns()Llt/noframe/ratemeplease/Conf;

    move-result-object p1

    invoke-virtual {p1}, Llt/noframe/ratemeplease/Conf;->getRatingThreshold()F

    move-result p1

    const-string p3, "activity!!"

    const/4 v0, 0x0

    cmpl-float p1, p2, p1

    if-lez p1, :cond_1

    .line 58
    new-instance p1, Llt/noframe/ratemeplease/views/ResponsePositiveView;

    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v1

    if-eqz v1, :cond_0

    invoke-static {v1, p3}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    new-instance p3, Llt/noframe/ratemeplease/dialogs/RateMeDialogFragment$parseRatingResult$1;

    invoke-direct {p3, p0}, Llt/noframe/ratemeplease/dialogs/RateMeDialogFragment$parseRatingResult$1;-><init>(Llt/noframe/ratemeplease/dialogs/RateMeDialogFragment;)V

    invoke-direct {p1, v1, p3}, Llt/noframe/ratemeplease/views/ResponsePositiveView;-><init>(Landroid/app/Activity;Llt/noframe/ratemeplease/views/ResponsePositiveView$PositiveReactionListener;)V

    goto :goto_0

    :cond_0
    invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V

    throw v0

    .line 75
    :cond_1
    new-instance p1, Llt/noframe/ratemeplease/views/ResponseNegativeView;

    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v1

    if-eqz v1, :cond_3

    invoke-static {v1, p3}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    new-instance p3, Llt/noframe/ratemeplease/dialogs/RateMeDialogFragment$parseRatingResult$2;

    invoke-direct {p3, p0}, Llt/noframe/ratemeplease/dialogs/RateMeDialogFragment$parseRatingResult$2;-><init>(Llt/noframe/ratemeplease/dialogs/RateMeDialogFragment;)V

    invoke-direct {p1, v1, p3}, Llt/noframe/ratemeplease/views/ResponseNegativeView;-><init>(Landroid/app/Activity;Llt/noframe/ratemeplease/views/ResponseNegativeView$NegativeReactionListener;)V

    .line 92
    :goto_0
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getContext()Landroid/content/Context;

    move-result-object p3

    if-eqz p3, :cond_2

    const-string v0, "context!!"

    invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-static {p3}, Llt/noframe/ratemeplease/utils/UtilsKt;->sp(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object p3

    invoke-static {}, Llt/noframe/ratemeplease/TriggersKt;->getKEY_RATING()Ljava/lang/String;

    move-result-object v0

    invoke-static {p2}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;

    move-result-object p2

    invoke-static {p3, v0, p2}, Llt/noframe/ratemeplease/utils/UtilsKt;->set(Landroid/content/SharedPreferences;Ljava/lang/String;Ljava/lang/Object;)V

    .line 93
    new-instance p2, Landroid/view/ViewGroup$LayoutParams;

    const/4 p3, -0x1

    const/4 v0, -0x2

    invoke-direct {p2, p3, v0}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V

    invoke-virtual {p1, p2}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 94
    invoke-virtual {p0, p1}, Llt/noframe/ratemeplease/abs/AbsDialogFragment;->setCurrentContent(Landroid/view/View;)V

    return-void

    .line 92
    :cond_2
    invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V

    throw v0

    .line 75
    :cond_3
    invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V

    throw v0
.end method

.method public final setMRating(F)V
    .locals 0

    .line 27
    iput p1, p0, Llt/noframe/ratemeplease/dialogs/RateMeDialogFragment;->mRating:F

    return-void
.end method
